package com.fdd.spring.proxy02;

import org.junit.Test;

public class TestVehicle {

    public static void main(String[] args) {
        Vehicle vehicle = new Car();
        System.out.println(vehicle);
        VehicleProxyProvider vehicleProxyProvider = new VehicleProxyProvider(vehicle);
        Vehicle proxy = (Vehicle) vehicleProxyProvider.getProxy();
        proxy.run();

    }


}
